#include <stdio.h>

struct weapon{
	char name[20];
	int atk;
	int price;
};

int main(){
	struct weapon v={"weapone_name",100,200};
	printf("%s,%d\n",v.name,++v.price);

	struct weapon w[2]={"2B",50,100,"9S",100,50};
	printf("%s,%d\n",w[0].name,w[1].atk);

	struct weapon *sp;
	sp=&v;
	printf("name=%s,%s\n",(*w).name,w->name);
	
	struct weapon *sp2;
	sp2=w;
	printf("name=%s\n",sp2->name);
	sp2++;
	printf("name=%s\n",sp2->name);

	return 0;
}
